Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

auth[.]md.ts

15 lines398 Bytes

1import { createFileRoute } from '@tanstack/react-router'
2import { env } from 'cloudflare:workers'
3​
4import { authMd } from '#/server/auth-discovery.ts'
5​
6export const Route = createFileRoute('/auth.md')({
7 server: {
8 handlers: {
9 GET: () =>
10 new Response(authMd(env.BETTER_AUTH_URL), {
11 headers: { 'Content-Type': 'text/markdown; charset=utf-8' },
12 }),
13 },
14 },
15})